import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { StorageProvider } from '../../providers/storage/storage';

/*
  Generated class for the ToolsProvider provider.

  See https://angular.io/guide/dependency-injection for more info on providers
  and Angular DI.
*/
@Injectable()
export class ToolsProvider {

  constructor(public http: HttpClient,public storage:StorageProvider) {
    console.log('Hello ToolsProvider Provider');
  }

  //获取用户的信息
  getUserinfoData(){
    var userinfo = this.storage.get('userinfo');
    return userinfo;
  }

}
